package com.drakulo.hi.logic.io;

import java.io.File;
import java.io.IOException;

import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;

public class FileHelper {
	public static Element loadXMLFile(String p_name) throws JDOMException, IOException {
		SAXBuilder sxb = new SAXBuilder();

		Document doc = sxb.build(new File(p_name));

		return doc.getRootElement();
	}
}
